BUILD_VERBOSE := -v
TARGET_PATH := /consumer
SERVICE_PATH := /consumer/consumer.service

.PHONY: build
build:
	go build $(BUILD_VERBOSE)

.PHONY: linux_build
linux_build:
	env GOOS=linux GOARCH=amd64 go build $(BUILD_VERBOSE)

.PHONY: lint
lint:
	gofmt -w ./**/*.go

.PHONY: test
test:
	cp config.json core/
	go test ./...
	rm core/config.json

.PHONY: clean
clean:
	rm -f *.log res* tmp* consumer debug
